<?php

/**
 * Test configuration
 * Usage:
 * - Local website
 * - Local DB
 * - Standard production error pages (404, 500, etc.)
 */
$db = array(
	'connectionString'=>'mysql:host=localhost;dbname=stratos_operational-test',
	'username'=>'root',
	'password'=>'',
	//'schemaCachingDuration' => 3600,
);

return array(
	// Set yiiPath (relative to Environment.php)
	'yiiPath'=>'/PortableApps/yii/framework/yii.php',
	'yiicPath'=>'/PortableApps/yii/framework/yiic.php',
	'yiitPath'=>'/PortableApps/yii/framework/yiit.php',
	// Set YII_DEBUG and YII_TRACE_LEVEL flags
	'yiiDebug'=>false,
	'yiiTraceLevel'=>0,
	// Static function Yii::setPathOfAlias()
	'yiiSetPathOfAlias'=>array(
	// uncomment the following to define a path alias
	//'local' => 'path/to/local-folder'
	),
	// This is the specific Web application configuration for this mode.
	// Supplied config elements will be merged into the main config array.
	'configWeb'=>array(
		// Application components
		'components'=>array(
			// Database
			'db'=>$db,
			// Fixture Manager for testing
			'fixture'=>array(
				'class'=>'system.test.CDbFixtureManager',
			),
			// URL Manager
			'urlManager'=>array(
				'showScriptName'=>true,
			),
			// Application Log
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					// Save log messages on file
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
					// Show log messages on web pages
					array(
						'class'=>'CWebLogRoute',
						//'categories' => 'system.db.CDbCommand',		//queries
						'levels'=>'error, warning',
					),
				),
			),
		),
		'modules'=>array(
			'user'=>array(
				'returnLogoutUrl'=>array('/site/index'),
				'returnUrl'=>array('/site/index'),
				'sendActivationMail'=>false,
				'tableUsers'=>'users',
				'tableProfiles'=>'profiles',
				'tableProfileFields'=>'profiles_fields',
				'install'=>true,
			),
			'rights'=>array(
				'install'=>true,
			),
		),
	),
	// This is the Console application configuration. Any writable
	// CConsoleApplication properties can be configured here.
	// Leave array empty if not used.
	// Use value 'inherit' to copy from generated configWeb.
	'configConsole'=>array(
	),
);